<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{hrEmpBean.id}"/>
		<f:event type="preRenderView" listener="#{hrEmpBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Hr Emp"/>

	<ui:define name="header">
		Hr Emp
	</ui:define>

	<ui:define name="subheader">
		View existing Hr Emp
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="hrEmpBeanHrEmpHrEmpPosition" value="Hr Emp Position:"/>
			<h:link id="hrEmpBeanHrEmpHrEmpPosition" outcome="/form/hrEmpPosition/view" value="#{hrEmpBean.hrEmp.hrEmpPosition}">
				<f:param name="id" value="#{hrEmpBean.hrEmp.hrEmpPosition.empPosNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="hrEmpBeanHrEmpEmpCode" value="Emp Code:"/>
			<h:outputText id="hrEmpBeanHrEmpEmpCode" value="#{hrEmpBean.hrEmp.empCode}"/>
			<h:outputText/>
			<h:outputLabel for="hrEmpBeanHrEmpNameTitleNo" value="Name Title No:"/>
			<h:outputText id="hrEmpBeanHrEmpNameTitleNo" value="#{hrEmpBean.hrEmp.nameTitleNo}"/>
			<h:outputText/>
			<h:outputLabel for="hrEmpBeanHrEmpEmpFirstName" value="Emp First Name:"/>
			<h:outputText id="hrEmpBeanHrEmpEmpFirstName" value="#{hrEmpBean.hrEmp.empFirstName}"/>
			<h:outputText/>
			<h:outputLabel for="hrEmpBeanHrEmpEmpLastName" value="Emp Last Name:"/>
			<h:outputText id="hrEmpBeanHrEmpEmpLastName" value="#{hrEmpBean.hrEmp.empLastName}"/>
			<h:outputText/>
			<h:outputLabel for="hrEmpBeanHrEmpEmpOrgNo" value="Emp Org No:"/>
			<h:outputText id="hrEmpBeanHrEmpEmpOrgNo" value="#{hrEmpBean.hrEmp.empOrgNo}"/>
			<h:outputText/>
			<h:outputLabel for="hrEmpBeanHrEmpSysUserLogins" value="Sys User Logins:"/>
			<h:dataTable id="hrEmpBeanHrEmpSysUserLogins" styleClass="data-table" value="#{forgeview:asList(hrEmpBean.hrEmp.sysUserLogins)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Org"/>
					</f:facet>
					<h:link outcome="/form/sysUserLogin/view">
						<f:param name="id" value="#{_item.userNo}"/>
						<h:outputText id="forgeviewdisplayitemSysOrg" value="#{forgeview:display(_item.sysOrg)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys User Role"/>
					</f:facet>
					<h:link outcome="/form/sysUserLogin/view">
						<f:param name="id" value="#{_item.userNo}"/>
						<h:outputText id="forgeviewdisplayitemSysUserRole" value="#{forgeview:display(_item.sysUserRole)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="User Name"/>
					</f:facet>
					<h:link outcome="/form/sysUserLogin/view">
						<f:param name="id" value="#{_item.userNo}"/>
						<h:outputText id="itemUserName" value="#{_item.userName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="User Password"/>
					</f:facet>
					<h:link outcome="/form/sysUserLogin/view">
						<f:param name="id" value="#{_item.userNo}"/>
						<h:outputText id="itemUserPassword" value="#{_item.userPassword}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="User Descr"/>
					</f:facet>
					<h:link outcome="/form/sysUserLogin/view">
						<f:param name="id" value="#{_item.userNo}"/>
						<h:outputText id="itemUserDescr" value="#{_item.userDescr}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="hrEmpBeanHrEmpSysBranches" value="Sys Branches:"/>
			<h:dataTable id="hrEmpBeanHrEmpSysBranches" styleClass="data-table" value="#{forgeview:asList(hrEmpBean.hrEmp.sysBranches)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Branch Code"/>
					</f:facet>
					<h:link outcome="/form/sysBranch/view">
						<f:param name="id" value="#{_item.branchNo}"/>
						<h:outputText id="itemBranchCode" value="#{_item.branchCode}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="hrEmpBeanHrEmpSaleLoanOffers" value="Sale Loan Offers:"/>
			<h:dataTable id="hrEmpBeanHrEmpSaleLoanOffers" styleClass="data-table" value="#{forgeview:asList(hrEmpBean.hrEmp.saleLoanOffers)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Rec No"/>
					</f:facet>
					<h:link outcome="/form/saleLoanOffer/view">
						<f:param name="id" value="#{_item.recNo}"/>
						<h:outputText id="itemRecNo" value="#{_item.recNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Loan Type No"/>
					</f:facet>
					<h:link outcome="/form/saleLoanOffer/view">
						<f:param name="id" value="#{_item.recNo}"/>
						<h:outputText id="itemLoanTypeNo" value="#{_item.loanTypeNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="hrEmpBeanHrEmpSaleLoanContracts" value="Sale Loan Contracts:"/>
			<h:dataTable id="hrEmpBeanHrEmpSaleLoanContracts" styleClass="data-table" value="#{forgeview:asList(hrEmpBean.hrEmp.saleLoanContracts)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Cust"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContract/view">
						<f:param name="id" value="#{_item.recNo}"/>
						<h:outputText id="forgeviewdisplayitemSysCust" value="#{forgeview:display(_item.sysCust)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Vehicle Brand"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContract/view">
						<f:param name="id" value="#{_item.recNo}"/>
						<h:outputText id="forgeviewdisplayitemSysVehicleBrand" value="#{forgeview:display(_item.sysVehicleBrand)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sale Loan Grade"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContract/view">
						<f:param name="id" value="#{_item.recNo}"/>
						<h:outputText id="forgeviewdisplayitemSaleLoanGrade" value="#{forgeview:display(_item.saleLoanGrade)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Org"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContract/view">
						<f:param name="id" value="#{_item.recNo}"/>
						<h:outputText id="forgeviewdisplayitemSysOrg" value="#{forgeview:display(_item.sysOrg)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Income Level"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContract/view">
						<f:param name="id" value="#{_item.recNo}"/>
						<h:outputText id="forgeviewdisplayitemSysIncomeLevel" value="#{forgeview:display(_item.sysIncomeLevel)}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="hrEmpBeanHrEmpSaleLoanContractLogs" value="Sale Loan Contract Logs:"/>
			<h:dataTable id="hrEmpBeanHrEmpSaleLoanContractLogs" styleClass="data-table" value="#{forgeview:asList(hrEmpBean.hrEmp.saleLoanContractLogs)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Log No"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContractLog/view">
						<f:param name="id" value="#{_item.logNo}"/>
						<h:outputText id="itemLogNo" value="#{_item.logNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>